package com.jeesite.modules.ch.web;

import com.alibaba.fastjson.JSONObject;
import com.jeesite.modules.cs.entity.CsCallback;
import com.jeesite.modules.cs.service.CsCallbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/apiChannel")
public class ApiChannelController {

    @Autowired
    CsCallbackService csCallbackService;

    @RequestMapping("ceshiTongbu")
    public JSONObject ceshiTongbu(@RequestBody CsCallback csCallback){
        csCallbackService.save(csCallback);
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("code", 200);
        return jsonObject;
    }
}
